#!/usr/bin/bash
#
# ecj script
# JPackage Project <http://www.jpackage.org/>

# Source functions library
_prefer_jre="true"
. /usr/share/java-utils/java-functions

# Source system prefs
if [ -f /etc/java/ecj.conf ] ; then
  . /etc/java/ecj.conf
fi

# Source user prefs
if [ -f $HOME/.ecjrc ] ; then
  . $HOME/.ecjrc
fi

# Configuration
MAIN_CLASS=org.eclipse.jdt.internal.compiler.batch.Main
BASE_FLAGS=''
BASE_OPTIONS=''
BASE_JARS="ecj"

# Set parameters
set_jvm
set_classpath $BASE_JARS
set_flags $BASE_FLAGS
set_options $BASE_OPTIONS

# Let's start
run "$@"
